/*
(comment
*
*    Copyright (c) ThorTech, L.L.C.. All rights reserved.
*    The use and distribution terms for this software are covered by the
*    Eclipse Public License 1.0 (http://opensource.org/licenses/eclipse-1.0.php)
*    which can be found in the file epl-v10.html at the root of this distribution.
*    By using this software in any fashion, you are agreeing to be bound by
*    the terms of this license.
*    You must not remove this notice, or any other, from this software.
*
*    Author: Tom Hickey
)
 */

/*
 * REPLManagerPanel.java
 *
 * Created on Dec 3, 2008, 10:13:23 AM
 */

package org.enclojure.ide.repl;

/**
 *
 * @author tomhickey
 */
public class ReplManagerPanel extends javax.swing.JPanel {

    /** Creates new form REPLManagerPanel */
    public ReplManagerPanel() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabelName = new javax.swing.JLabel();
        jTextFieldName = new javax.swing.JTextField();
        jLabelHost = new javax.swing.JLabel();
        jTextFieldHost = new javax.swing.JTextField();
        jLabelPort = new javax.swing.JLabel();
        jTextFieldPort = new javax.swing.JTextField();
        jCheckBoxExternal = new javax.swing.JCheckBox();
        jLabelArguments = new javax.swing.JLabel();
        jTextFieldArguments = new javax.swing.JTextField();
        jLabelClasspath = new javax.swing.JLabel();
        jTextFieldClasspath = new javax.swing.JTextField();
        jLabelTimeout = new javax.swing.JLabel();
        jTextFieldTimeout = new javax.swing.JTextField();
        jLabelStartupScript = new javax.swing.JLabel();
        jTextFieldStartupScript = new javax.swing.JTextField();
        jLabelMainClass = new javax.swing.JLabel();
        jTextFieldMainClass = new javax.swing.JTextField();
        jButtonSave = new javax.swing.JButton();
        jButtonNew = new javax.swing.JButton();
        jScrollPaneProcesses = new javax.swing.JScrollPane();
        jListProcesses = new javax.swing.JList();
        jLabelProcesses = new javax.swing.JLabel();
        jButtonUseProjectsClasspath = new javax.swing.JButton();
        jButtonStop = new javax.swing.JButton();
        jButtonRemove = new javax.swing.JButton();
        jToggleButtonActivate = new javax.swing.JButton();

        setVerifyInputWhenFocusTarget(false);

        jLabelName.setText("Name:");

        jLabelHost.setText("Host:");

        jLabelPort.setText("Port:");

        jCheckBoxExternal.setText("Attach to running REPL server");

        jLabelArguments.setText("Arguments:");

        jLabelClasspath.setText("Classpath:");

        jTextFieldClasspath.setMaximumSize(new java.awt.Dimension(1019, 457));

        jLabelTimeout.setText("Timeout:");

        jLabelStartupScript.setText("Starup Script:");

        jLabelMainClass.setText("Main Class:");

        jButtonSave.setText("Save");

        jButtonNew.setText("New");

        jListProcesses.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jScrollPaneProcesses.setViewportView(jListProcesses);

        jLabelProcesses.setText("Configured REPL Servers:");

        jButtonUseProjectsClasspath.setText("Use From Open Projects");

        jButtonStop.setText("Stop");

        jButtonRemove.setText("Remove");

        jToggleButtonActivate.setText("Activate");

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(10, 10, 10)
                .add(jLabelProcesses)
                .add(87, 87, 87)
                .add(jLabelName)
                .add(60, 60, 60)
                .add(jTextFieldName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 364, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
            .add(layout.createSequentialGroup()
                .add(10, 10, 10)
                .add(jScrollPaneProcesses, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 213, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(30, 30, 30)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabelHost)
                    .add(jLabelPort)
                    .add(jLabelArguments)
                    .add(jLabelClasspath)
                    .add(jLabelTimeout)
                    .add(jLabelStartupScript)
                    .add(jLabelMainClass))
                .add(16, 16, 16)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jCheckBoxExternal, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 296, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jTextFieldHost, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 364, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jTextFieldPort, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 364, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jTextFieldArguments, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 364, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jTextFieldClasspath, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 364, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(layout.createSequentialGroup()
                        .add(170, 170, 170)
                        .add(jButtonUseProjectsClasspath))
                    .add(jTextFieldTimeout, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 364, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jTextFieldStartupScript, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 364, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jTextFieldMainClass, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 364, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
            .add(layout.createSequentialGroup()
                .add(16, 16, 16)
                .add(jButtonNew)
                .add(5, 5, 5)
                .add(jButtonRemove)
                .add(164, 164, 164)
                .add(jButtonSave)
                .add(10, 10, 10)
                .add(jToggleButtonActivate)
                .add(5, 5, 5)
                .add(jButtonStop))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(5, 5, 5)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(layout.createSequentialGroup()
                        .add(10, 10, 10)
                        .add(jLabelProcesses))
                    .add(layout.createSequentialGroup()
                        .add(10, 10, 10)
                        .add(jLabelName))
                    .add(jTextFieldName, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .add(2, 2, 2)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jScrollPaneProcesses, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 276, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(layout.createSequentialGroup()
                        .add(40, 40, 40)
                        .add(jLabelHost)
                        .add(14, 14, 14)
                        .add(jLabelPort)
                        .add(14, 14, 14)
                        .add(jLabelArguments)
                        .add(14, 14, 14)
                        .add(jLabelClasspath)
                        .add(54, 54, 54)
                        .add(jLabelTimeout)
                        .add(14, 14, 14)
                        .add(jLabelStartupScript)
                        .add(14, 14, 14)
                        .add(jLabelMainClass))
                    .add(layout.createSequentialGroup()
                        .add(jCheckBoxExternal)
                        .add(7, 7, 7)
                        .add(jTextFieldHost, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(2, 2, 2)
                        .add(jTextFieldPort, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(2, 2, 2)
                        .add(jTextFieldArguments, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(2, 2, 2)
                        .add(jTextFieldClasspath, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(2, 2, 2)
                        .add(jButtonUseProjectsClasspath)
                        .add(11, 11, 11)
                        .add(jTextFieldTimeout, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(2, 2, 2)
                        .add(jTextFieldStartupScript, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(2, 2, 2)
                        .add(jTextFieldMainClass, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 26, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .add(11, 11, 11)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jButtonNew)
                    .add(jButtonRemove)
                    .add(jButtonSave)
                    .add(jToggleButtonActivate)
                    .add(jButtonStop)))
        );
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    public javax.swing.JButton jButtonNew;
    public javax.swing.JButton jButtonRemove;
    public javax.swing.JButton jButtonSave;
    public javax.swing.JButton jButtonStop;
    public javax.swing.JButton jButtonUseProjectsClasspath;
    public javax.swing.JCheckBox jCheckBoxExternal;
    public javax.swing.JLabel jLabelArguments;
    public javax.swing.JLabel jLabelClasspath;
    public javax.swing.JLabel jLabelHost;
    public javax.swing.JLabel jLabelMainClass;
    public javax.swing.JLabel jLabelName;
    public javax.swing.JLabel jLabelPort;
    public javax.swing.JLabel jLabelProcesses;
    public javax.swing.JLabel jLabelStartupScript;
    public javax.swing.JLabel jLabelTimeout;
    public javax.swing.JList jListProcesses;
    public javax.swing.JScrollPane jScrollPaneProcesses;
    public javax.swing.JTextField jTextFieldArguments;
    public javax.swing.JTextField jTextFieldClasspath;
    public javax.swing.JTextField jTextFieldHost;
    public javax.swing.JTextField jTextFieldMainClass;
    public javax.swing.JTextField jTextFieldName;
    public javax.swing.JTextField jTextFieldPort;
    public javax.swing.JTextField jTextFieldStartupScript;
    public javax.swing.JTextField jTextFieldTimeout;
    public javax.swing.JButton jToggleButtonActivate;
    // End of variables declaration//GEN-END:variables

}
